import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		loginData: [],
		workReportData: [],
		findCardInfoByNoData: [],
		procedureIdData: [],
		procedureNameData: [],
		storeDataId: '',
		accessoryDataId: '',
		inventoryQueryInfo: [],
		storageInfoList: []
	},
	mutations: {
		loginList(state, value) {
			state.loginData = value
		},
		workReportList(state, value) {
			state.workReportData = value
		},
		findCardInfoByNoList(state, value) {
			state.findCardInfoByNoData = value
		},
		procedureIdList(state, value) {
			state.procedureIdData = value
		},
		procedureNameList(state, value) {
			state.procedureNameData = value
		},
		storeId(state, value) {
			state.storeDataId = value
		},
		accessoryId(state, value) {
			state.accessoryDataId = value
		},
		inventoryQueryInfoList(state, value) {
			state.inventoryQueryInfo = value
		},
		storageInfoList(state, value) {
			state.storageInfo = value
		},
	},
	actions: {},
	modules: {},
});

export default store